package com.dxk.controller;



import com.dxk.pojo.User;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.AbstractMap;
import java.util.HashMap;

@RestController
public class helloSwagger {

    @GetMapping({"/hello"})
    public String hello(){
        return "hello";
    }


   @ApiImplicitParam
    @PostMapping("/hello1")
    public User hello1(){


        return new User();
    }

    @ApiOperation("test类")
    @ResponseBody
    @GetMapping("/hello1")
    public User user(@ApiParam("用户") User user){

        return user;
    }



}
